<?php
if ($_SESSION['pro_ldap'] == 1){
    
    $connect = ldap_connect($_SESSION['pro_host'],$_SESSION['pro_porta']) or exit(">>Could not connect to LDAP server<<");

	ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
    ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);
    
}